|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.idautomation.qrcode.QRCode
This is the main QRCode class that generates the QRCode barcode image.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
QRCode()
|
|
| Method Summary | |
java.lang.String |
createEPS()
|
java.lang.String |
createSVG()
|
boolean |
getApplyTilde()
Gets the applyTilde property. |
boolean |
getAutoSize()
Gets the autoSize property. |
java.awt.Color |
getBackground()
Gets the backColor property. |
boolean |
getBestMask()
Gets the bestMask property. |
java.lang.String |
getDataToEncode()
Gets the code property. |
java.lang.String |
getEncodingMode()
Gets the encodingMode property. |
java.lang.String |
getErrorCorrectionLevel()
Gets the errorCorrectionLevel property. |
java.awt.Color |
getForeground()
Gets the barColor property. |
double |
getLeftMarginCM()
Gets the leftMarginCM property. |
java.awt.Dimension |
getMinimumSize()
Gets the minimum size in pixels of the barcode image generated. |
int |
getPixelsPerCM()
Gets the resolution property. |
java.awt.Dimension |
getPreferredSize()
Gets the size in pixels of the Preferred barcode image generated. |
int |
getQuietZone()
Gets the quietZone property. |
int |
getRotationAngle()
Gets the rotate property. |
double |
getTopMarginCM()
Gets the topMarginCM property. |
int |
getVersion()
Gets the version property. |
double |
getXDimensionCM()
Gets the X property. |
void |
paint(java.awt.Graphics g2)
Paints the barcode and rotates it if necessary |
protected void |
paintBasis(java.awt.Graphics g)
|
protected java.awt.Image |
rotate(java.awt.Image im,
int angle,
int maxw,
int maxh)
Rotates an image |
void |
setApplyTilde(boolean newVal)
Sets the applyTilde property. |
void |
setAutoSize(boolean newVal)
Sets the autoSize property. |
void |
setBackground(java.awt.Color newColor)
Sets the backColor property. |
void |
setBestMask(boolean newVal)
Sets the bestMask property. |
void |
setDataToEncode(java.lang.String newCode)
Sets the code property. |
void |
setEncodingMode(java.lang.String newVal)
Sets the encodingMode property. |
void |
setErrorCorrectionLevel(java.lang.String newVal)
Sets the errorCorrectionLevel property. |
void |
setForeground(java.awt.Color newColor)
Sets the barColor property. |
void |
setImageSize(int imgWidth,
int imgHeight)
Sets the size of the generated image, if used then autoSize is set to false. |
void |
setLeftMarginCM(double newMargin)
Sets the leftMarginCM property. |
void |
setPixelsPerCM(int newRes)
Sets the resolution property. |
void |
setQuietZone(int newQuietZone)
Sets the quietZone property. |
void |
setRotationAngle(int newRotate)
Sets the rotate property. |
void |
setTopMarginCM(double newMargin)
Sets the topMarginCM property. |
void |
setVersion(int newVal)
Sets the version property. |
void |
setXDimensionCM(double newX)
Sets the X property. |
| Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QRCode()
| Method Detail |
public void setDataToEncode(java.lang.String newCode)
newCode - the new value for the code variable.#code,
User Manualpublic java.lang.String getDataToEncode()
#code,
User Manualpublic void setQuietZone(int newQuietZone)
newQuietZone - the new value for the quietZone variable.#quietZone,
User Manualpublic int getQuietZone()
#quietZone,
User Manualpublic void setLeftMarginCM(double newMargin)
newMargin - the new value for the leftMarginCM variable.#leftMarginCM,
User Manualpublic double getLeftMarginCM()
#leftMarginCM,
User Manualpublic void setTopMarginCM(double newMargin)
newMargin - the new value for the topMarginCM variable.#topMarginCM,
User Manualpublic double getTopMarginCM()
#topMarginCM,
User Manualpublic void setBestMask(boolean newVal)
newVal - the new value for the bestMask variable.#bestMask,
User Manualpublic boolean getBestMask()
#bestMask,
User Manualpublic void setApplyTilde(boolean newVal)
newVal - the new value for the applyTilde variable.#applyTilde,
User Manualpublic boolean getApplyTilde()
#applyTilde,
User Manualpublic void setVersion(int newVal)
newVal - the new value for the version variable.#version,
User Manualpublic int getVersion()
#version,
User Manualpublic void setErrorCorrectionLevel(java.lang.String newVal)
newVal - the new value for the errorCorrectionLevel variable.#errorCorrectionLevel,
User Manualpublic java.lang.String getErrorCorrectionLevel()
#errorCorrectionLevel,
User Manualpublic void setEncodingMode(java.lang.String newVal)
newVal - the new value for the encodingMode variable.#encodingMode,
User Manualpublic java.lang.String getEncodingMode()
#encodingMode,
User Manualpublic void setBackground(java.awt.Color newColor)
newColor - the new value for the backColor variable.#backColor,
User Manualpublic java.awt.Color getBackground()
#backColor,
User Manualpublic void setForeground(java.awt.Color newColor)
newColor - the new value for the barColor variable.#barColor,
User Manualpublic java.awt.Color getForeground()
#barColor,
User Manualpublic void setPixelsPerCM(int newRes)
newRes - the new value for the resolution variable.#resolution,
User Manualpublic int getPixelsPerCM()
#resolution,
User Manualpublic void setXDimensionCM(double newX)
newX - the new value for the X variable.#X,
User Manualpublic double getXDimensionCM()
#X,
User Manualpublic void setAutoSize(boolean newVal)
newVal - the new value for the autoSize variable.#autoSize,
User Manualpublic boolean getAutoSize()
#autoSize,
User Manual
public void setImageSize(int imgWidth,
int imgHeight)
public java.awt.Dimension getPreferredSize()
#pWidth,
#pHeight,
User Manualpublic java.awt.Dimension getMinimumSize()
public void setRotationAngle(int newRotate)
newRotate - the new value for the rotate variable.rotate(java.awt.Image, int, int, int),
User Manualpublic int getRotationAngle()
rotate(java.awt.Image, int, int, int),
User Manualpublic void paint(java.awt.Graphics g2)
protected void paintBasis(java.awt.Graphics g)
public java.lang.String createSVG()
public java.lang.String createEPS()
protected java.awt.Image rotate(java.awt.Image im,
int angle,
int maxw,
int maxh)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||